#ifndef SERVERNETWORKPROCESSING_H
#define SERVERNETWORKPROCESSING_H
#include <QTcpServer>
class QTcpSocket;
class ServerNetworkProcessing: public QTcpServer
{
    Q_OBJECT
public:
    ServerNetworkProcessing();
    void send(QJsonObject sendJson);
public slots:
    bool Connection(QString ipAddr, int port);
    bool getTcpServerStatic();
private slots:
    // void startTransfer();
    // void updateClientProgress(qint64);
    void SendSignal(bool);
    void displayError(QAbstractSocket::SocketError);
signals:
    void TcpSockerStatic(bool);
private:
    QTcpSocket *m_tcpServer;
};

#endif // SERVERNETWORKPROCESSING_H
